package message

import (
	database "hft/Database"
	"time"

	"gorm.io/gorm"
)

type SysMessage struct {
	SysID      uint           `json:"sys_id" gorm:"primaryKey;autoIncrement"`
	CreateTime time.Time      `json:"create_time" gorm:"autoCreateTime"`
	UpdateTime time.Time      `json:"update_time" gorm:"autoUpdateTime"`
	DeletedAt  gorm.DeletedAt `json:"-" gorm:"index"`
	SysTitle   string         `json:"sys_title"`
	SysCont    string         `json:"sys_cont"`
	UserID     uint           `json:"user_id"`
}

func (SysMessage) TableName() string {
	return database.TableNameFormat("front_user_msg_sys")
}
